package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;

import java.util.List;

/**
 * @version 1.0
 * @auther ljw
 * @date 2021/6/20 15:28
 */
public interface UserService {

    User findByUsername(String userName);

    void add(User user, Integer[] roleIds);

    PageResult pageQuery(QueryPageBean queryPageBean);

    User findById(Integer id);

    List<Integer> findRoleIdsByUserId(Integer id);

    void edit(User user, Integer[] roleIds);

    void delete(Integer id);

    void setUserAndRole(Integer userId, Integer[] roleIds);
}
